package PMIRPConstDefs;
/**
 * Generated from IDL enum "JobPriority".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class JobPriority
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _LOW = 0;
	public static final JobPriority LOW = new JobPriority(_LOW);
	public static final int _MEDIUM = 1;
	public static final JobPriority MEDIUM = new JobPriority(_MEDIUM);
	public static final int _HIGH = 2;
	public static final JobPriority HIGH = new JobPriority(_HIGH);
	public int value()
	{
		return value;
	}
	public static JobPriority from_int(int value)
	{
		switch (value) {
			case _LOW: return LOW;
			case _MEDIUM: return MEDIUM;
			case _HIGH: return HIGH;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _LOW: return "LOW";
			case _MEDIUM: return "MEDIUM";
			case _HIGH: return "HIGH";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected JobPriority(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
